import request from '@/utils/request'

export function getRuleDropListAPI() {
  return request({
    url: '/parking/rule/dropList'
  })
}
export function getRuleListAPI() {
  return request({
    url: '/parking/rule/list'
  })
}
export function delRuleAPI(id) {
  return request({
    url: '/parking/rule/' + id,
    method: 'delete'
  })
}
export function addRuleAPI(data) {
  return request({
    url: '/parking/rule',
    method: 'post',
    data
  })
}
export function updateRuleAPI(data) {
  return request({
    url: '/parking/rule',
    method: 'put',
    data
  })
}
export function getRuleDetailAPI(id) {
  return request({
    url: '/parking/rule/' + id
  })
}
